package com.ljc.www.rabbitmq;


import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 创建队列
 */
@Configuration
public class QueueConfig {

    @Bean
    public Queue createQueue(){
        return new Queue("rabbit-mq");
    }
}
